#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ec.h"

int main(int argc, char **argv)
{
  if(argc < 3)
    usage(NULL);
  else if(strcmp(argv[1], "put") == 0)
    put(argv[2]);
  else if(strcmp(argv[1], "get") == 0)
    get(argv[2]);
  else if(strcmp(argv[1], "touch") == 0)
    touch(argv[2]);
  else if(strcmp(argv[1], "rm") == 0)
    rm(argv[2]);
  else
    usage(NULL);
  exit(EXIT_SUCCESS);
}
